package com.laycoding.consumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * created with IntelliJ IDEA.
 *
 * @author: guidada
 * @date: 2021/05/12/10:46
 * @description:
 */
@FeignClient(name = "spring-cloud-order-service-provider") //这里是服务提供者在Eureka中的名称
public interface IResultInterface {
    @RequestMapping(value = "/order/data/getTodayFinishOrderNum/{id}") //服务提供者的接口路由
    String getResult(@PathVariable("id") Integer id);
}
